package com.blog.attach.service;

import com.blog.attach.entity.UserCollection;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 苏离
 * @since 2022-01-15
 */
public interface UserCollectionService extends IService<UserCollection> {
    boolean isCollect(String userId, Integer articleId);
    boolean addOrDeleteCollect(boolean isAdd,String userId, Integer articleId);
    Map<String, Object> getArticleCollection(String userId,Integer pageSize,Integer limit);
}
